//
//  HSTableManagedCell.m
//  hsdyOrderSystem
//
//  Created by XunFengKJ on 2017/11/29.
//  Copyright © 2017年 赖国锋. All rights reserved.
//

#import "HSTableManagedCell.h"

@implementation HSTableManagedCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.saveBtn.layer.cornerRadius = 20;
    self.saveBtn.layer.masksToBounds = YES;
}

//保存
- (IBAction)saveBtnClick:(UIButton*)sender {
    if (self.saveBtnClickBlock) {
        self.saveBtnClickBlock(sender.tag);
    }
}

-(void)setModel:(HSQRCodeModel *)model{
    _model = model;
    self.tableNumberL.text = [NSString stringWithFormat:@"桌位%@",model.tableNumber];
    [self.QRCodeImageV sd_setImageWithURL:[NSURL URLWithString:model.images]];
    self.saveBtn.tag = [self.model.qr_id intValue];
}

@end
